﻿using System.Collections.Generic;

namespace Day03
{
    /// <summary>
    /// 排序算法类
    /// </summary>
    class GrenadeComparer : IComparer<Grenade>
    {
        public int Compare(Grenade x, Grenade y)
        {
            return x.AttackDistance.CompareTo(y.AttackDistance);
        }
    }
}
